package com.study.hospital_3.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.study.hospital_3.pojo.Department;
import com.study.hospital_3.pojo.Doctor;


import java.time.LocalDateTime;


public class PatientUpdateVO {
    private Integer id;
    private String patientName;
    private String sex;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime date;
    private String state;
    private String roomId;
    private String bedId;
    private Doctor doctor;
    private Department department;

    public PatientUpdateVO() {
    }

    public PatientUpdateVO(Integer id, String patientName, String sex, LocalDateTime date, String state, String roomId, String bedId, Doctor doctor, Department department) {
        this.id = id;
        this.patientName = patientName;
        this.sex = sex;
        this.date = date;
        this.state = state;
        this.roomId = roomId;
        this.bedId = bedId;
        this.doctor = doctor;
        this.department = department;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return patientName
     */
    public String getPatientName() {
        return patientName;
    }

    /**
     * 设置
     * @param patientName
     */
    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    /**
     * 获取
     * @return sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return date
     */
    public LocalDateTime getDate() {
        return date;
    }

    /**
     * 设置
     * @param date
     */
    public void setDate(LocalDateTime date) {
        this.date = date;
    }

    /**
     * 获取
     * @return state
     */
    public String getState() {
        return state;
    }

    /**
     * 设置
     * @param state
     */
    public void setState(String state) {
        this.state = state;
    }

    /**
     * 获取
     * @return roomId
     */
    public String getRoomId() {
        return roomId;
    }

    /**
     * 设置
     * @param roomId
     */
    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    /**
     * 获取
     * @return bedId
     */
    public String getBedId() {
        return bedId;
    }

    /**
     * 设置
     * @param bedId
     */
    public void setBedId(String bedId) {
        this.bedId = bedId;
    }

    /**
     * 获取
     * @return doctor
     */
    public Doctor getDoctor() {
        return doctor;
    }

    /**
     * 设置
     * @param doctor
     */
    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    /**
     * 获取
     * @return department
     */
    public Department getDepartment() {
        return department;
    }

    /**
     * 设置
     * @param department
     */
    public void setDepartment(Department department) {
        this.department = department;
    }

    public String toString() {
        return "PatientUpdateVO{id = " + id + ", patientName = " + patientName + ", sex = " + sex + ", date = " + date + ", state = " + state + ", roomId = " + roomId + ", bedId = " + bedId + ", doctor = " + doctor + ", department = " + department + "}";
    }
}
